<?php

  // include base peer class
  require_once 'cms/staff/om/om/BaseStaffPeer.php';
  
  // include object class
  include_once 'cms/staff/om/Staff.php';


/**
 * Skeleton subclass for performing query and update operations on the 'staff' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package cms.staff.om
 */	
class StaffPeer extends BaseStaffPeer {

    public function getStaffByUsername($username) {

        $c = new Criteria();
        $c->add(StaffPeer::ACTIVE, true);
        $c->add(StaffPeer::USERNAME, $username);

        return self::doSelectOne($c);

    }

} // StaffPeer
